<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
<div id="app">
    <input type="text" v-model="name">
</div>

</body>
<script>
    const app = Vue.createApp({
        data(){
            return{
                name: 'test'
            }
        },
        methods:{

        },
        beforeCreate(){
            console.log('beforeCreated回调被触发');
        },
        created(){
            console.log('created,回调被触发');
        },
        beforeMount(){
            console.log('beforeMount,回调被触发');
        },
        mounted(){
            console.log('mounted,回调被触发');
        },
        beforeUpdate(){
            console.log('beforeUpdated,回调被触发', arguments);
        },
        updated(){
            console.log('updated, 回调被触发');
        }
    })

    app.mount('#app');
</script>
</html>